package com.zt.controller;

import com.zt.pojo.Music;
import com.zt.service.MusicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: MusicController
 * @Description:
 * @Date: 2020/12/10 15:26
 */
@RestController
@RequestMapping("/music")
public class MusicController {
    @Autowired
    private MusicService musicService;
    @GetMapping("/getName")
    public Music getName(){
       return musicService.getName();
    }
}
